<?php

declare(strict_types=1);

namespace App\Entities;

class MessageEntity extends ABaseEntity
{
    public function __construct(MessageModel $model)
    {
        $this->model = $model;
    }

    //id
    public function getId(): int
    {
        return $this->model->id;
    }

    public function setId(int $id): void
    {
        $this->model->id = $id;
    }

    public function getEndTime(): string
    {
        return $this->model->end_time;
    }

    public function setEndTime(string $endTime): void
    {
        $this->model->end_time = $endTime;
    }

    public function getStartTime(): string
    {
        return $this->model->start_time;
    }

    public function setStartTime(string $startTime): void
    {
        $this->model->start_time = $startTime;
    }

    public function getCreateTime(): string
    {
        return $this->model->create_time;
    }

    public function setCreateTime(string $createTime): void
    {
        $this->model->create_time = $createTime;
    }

    public function getContent(): string
    {
        return $this->model->content;
    }

    public function setContent(string $content): void
    {
        $this->model->content = $content;
    }

    public function getTitle(): string
    {
        return $this->model->title;
    }

    public function setTitle(string $title): void
    {
        $this->model->title = $title;
    }

    //status
    public function getStatus(): int
    {
        return $this->model->status;
    }

    public function setStatus(int $status): void
    {
        $this->model->status = $status;
    }

    //to_city
    public function getToCity(): string
    {
        return $this->model->to_city;
    }

    public function setToCity(string $toCity): void
    {
        $this->model->to_city = $toCity;
    }

    public function getType(): int
    {
        return $this->model->type;
    }

    public function setType(int $type): void
    {
        $this->model->type = $type;
    }

    public function getToCleanerId(): int
    {
        return $this->model->to_cleaner_id;
    }

    public function setToCleanerId(int $to_cleaner_id): void
    {
        $this->model->to_cleaner_id = $to_cleaner_id;
    }
}
